package com.casems.controller;


import com.casems.commons.dto.CaseData;
import com.casems.commons.vo.ResultVO;
import com.casems.entity.Medical;
import com.casems.entity.Symptom;
import com.casems.service.MedicalService;
import com.casems.service.SymptomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tch
 * @since 2023-05-17
 */
@RestController
@RequestMapping("/symptom")
public class SymptomController {

    @Autowired
    SymptomService symptomService;



    @RequestMapping("/getAllSymptom")
    public ResultVO getAllSymptom(){
        List<Symptom> list = symptomService.list();
        return list!=null && list.size()!=0?ResultVO.success(list):ResultVO.failed("查询失败");
    }
}

